package com.jgjc.controller;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class FunctionManagentController {

    @GetMapping(value = "/menuFunction/getAuthorizedMenuFunction")
    public JSONArray getAuthorizedMenuFunction() {
        JSONArray jsonArray = new JSONArray();
       JSONObject map3 = new JSONObject();
        map3.put("functionId", "91E6DC0A985A425ABB5D727FB57D68FC");
        map3.put("functionName", "删除");
        map3.put("functionType", "DELETE");
        map3.put("id", "95B177E33F24498F9C591A7619974744");
        map3.put("menuId", "C92CDC931CA7464DA8D54A869149803A");
        map3.put("menuName", "基本信息管理");
        jsonArray.add(map3);
        JSONObject map = new JSONObject();
        map.put("functionId", "5DA1E9CEBC2948BF93EB025175426646");
        map.put("functionName", "导出");
        map.put("functionType", "EXPORT");
        map.put("id", "B3C5784AAE6342DD90E479C3C8ABE643");
        map.put("menuId", "C92CDC931CA7464DA8D54A869149803A");
        map.put("menuName", "基本信息管理");
        jsonArray.add(map);
        JSONObject map1 = new JSONObject();
        map1.put("functionId", "DAC738FDBC7B4132A87FA7289C77FF2D");
        map1.put("functionName", "导入");
        map1.put("functionType", "IMPORT");
        map1.put("id", "C8AC11368A60483BAC6D433957474161");
        map1.put("menuId", "C92CDC931CA7464DA8D54A869149803A");
        map1.put("menuName", "基本信息管理");
        jsonArray.add(map1);
        JSONObject map2 = new JSONObject();
        map2.put("functionId", "48332ED57EEE44B1A866457EAABD0B3C");
        map2.put("functionName", "编辑");
        map2.put("functionType", "EDIT");
        map2.put("id", "95A76989095640C28C596A8BDB29F459");
        map2.put("menuId", "C92CDC931CA7464DA8D54A869149803A");
        map2.put("menuName", "基本信息管理");
        jsonArray.add(map2);
        JSONObject map9 = new JSONObject();
        map9.put("functionId", "D13F422EDA2B4135BC218B9E974C1B64");
        map9.put("functionName", "复制");
        map9.put("functionType", "COPY");
        map9.put("id", "1EADAEFE86E7410C887B54789C794D0B");
        map9.put("menuId", "C92CDC931CA7464DA8D54A869149803A");
        map9.put("menuName", "基本信息管理");
        jsonArray.add(map9);
        JSONObject map10 = new JSONObject();
        map10.put("functionId", "7F8A79A62301482D9DDC15CA23F45701");
        map10.put("functionName", "新增");
        map10.put("functionType", "ADD");
        map10.put("id", "F786813F96734210BF0BDF9B3261EF65");
        map10.put("menuId", "C92CDC931CA7464DA8D54A869149803A");
        map10.put("menuName", "基本信息管理");
        jsonArray.add(map10);
//        Map<String, Object> map4 = new HashMap<>();
//        map4.put("functionId", "7F8A79A62301482D9DDC15CA23F45701");
//        map4.put("functionName", "新增");
//        map4.put("functionType", "ADD");
//        map4.put("id", "A27BAE03302F4409A345325A6FEA72A7");
//        map4.put("menuId", "CCCD3D00A2A14D648DDD4F00D10336D8");
//        map4.put("menuName", "分幅信息管理");
//        list.add(map4);
//        Map<String, Object> map5 = new HashMap<>();
//        map5.put("functionId", "D13F422EDA2B4135BC218B9E974C1B64");
//        map5.put("functionName", "复制");
//        map5.put("functionType", "COPY");
//        map5.put("id", "FF15F1D6039647BEA413B538A15DB93A");
//        map5.put("menuId", "CCCD3D00A2A14D648DDD4F00D10336D8");
//        map5.put("menuName", "分幅信息管理");
//        list.add(map5);
//        Map<String, Object> map6 = new HashMap<>();
//        map6.put("functionId", "91E6DC0A985A425ABB5D727FB57D68FC");
//        map6.put("functionName", "删除");
//        map6.put("functionType", "DELETE");
//        map6.put("id", "FDAA5A8ACF7E4A4689649FE0B9AC2CC1");
//        map6.put("menuId", "CCCD3D00A2A14D648DDD4F00D10336D8");
//        map6.put("menuName", "分幅信息管理");
//        list.add(map6);
//        Map<String, Object> map7= new HashMap<>();
//        map7.put("functionId", "48332ED57EEE44B1A866457EAABD0B3C");
//        map7.put("functionName", "编辑");
//        map7.put("functionType", "EDIT");
//        map7.put("id", "72ACCCECE3B84AC582968C8ECCF96DD8");
//        map7.put("menuId", "CCCD3D00A2A14D648DDD4F00D10336D8");
//        map7.put("menuName", "分幅信息管理");
//        list.add(map7);
//        Map<String, Object> map8= new HashMap<>();
//        map8.put("functionId", "53372BF9162F4FF2A9B26FEDFE6EAEDA");
//        map8.put("functionName", "管理");
//        map8.put("functionType", "MANAGE");
//        map8.put("id", "FA7612D02C3F413DAD78112180485C9F");
//        map8.put("menuId", "CCCD3D00A2A14D648DDD4F00D10336D8");
//        map8.put("menuName", "分幅信息管理");
//        list.add(map8);
        return jsonArray;
    }
}
